<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/8/4
 * Time: 9:34
 */

namespace WebApp\lib\util;

/**
 * Class Logable
 * @package txz\oss\tools\Atool
 */
trait MonitorAndLogAble
{
    public function __construct($mode = '1_12')
    {
        if ($mode === '1_12') {
            $GLOBALS['LogHelp'] = new \txz\oss\tools\audio_spider\base\LogHelp();
            $GLOBALS['MonitorHelp'] = new \txz\oss\tools\audio_spider\base\MonitorHelp();
        } else {
            die("no mode");
        }
    }
}
